<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人信息</title>
    <link rel="stylesheet" href="../layui/css/layui.css">

    <style>
        .layui-tab-title .layui-this {
            color: #409eff !important;
        }

        .layui-tab-title .layui-this:after {
            border-bottom: 2px solid #409eff !important;
        }

        /* 解决使用Vue.js页面加载数据的时候，页面闪现原始代码 */
        [v-cloak] {
            display: none;
        }
    </style>
</head>

<body>

    <div class="layui-layout layui-layout-admin" id="app" v-cloak>

        <div class="layui-bg-gray" style="padding: 30px;display: inline-block;background-color: white!important;">
            <div class="layui-row layui-col-space15" style="margin-top:0 ;">
                <div
                    style="width: 270px;-webkit-box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);background-color: white;border-radius: 5px;">
                    <div class="layui-panel" style="border-style: none;box-shadow: 1px 1px 4px rgb(0 0 0 / 0%);">
                        <div style="padding: 10px 20px;font-size: 16px;">关于我</div>
                        <hr>
                        <div style="padding: 10px 20px;">
                            <div style="padding: 0px 0px;text-align: center;">
                                <span>
                                    <div @mouseover="showTwo" @mouseout="showOne">
                                        <img id="one" v-bind:src="'../image/'+admin.image" style="width: 100px;height: 100px;border-radius: 50%;">
                                        <span id="two" style="width: 95px;height: 95px;border-radius: 50%;border: 5px solid #eef0f1;display: none;text-align: center;line-height: 50px;font-size: 16px;">
                                            <label>你好</label><br>
                                            <label>管理员</label>
                                        </span>
                                    </div><br>
                                    <label
                                        style="font-size: 17px;font-weight: 600;color: black;">{{admin.userName}}</label><br /><br />
                                    <label>{{admin.realName}}</label>
                                </span>
                            </div><br /><br />
                            <div>
                                <i class="layui-icon layui-icon-read"
                                    style="color: black;font-weight: 800;"></i>&nbsp;&nbsp;
                                <span style="font-weight: 600;">个人简介</span>
                            </div>
                            <hr>
                            <div style="margin-bottom: 30px;">
                                <label>天行健，君子应自强不息</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"
            style="display: inline-block;position:absolute;top: 20px;-webkit-box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);width: 750px;padding: 20px;border-radius: 5px;">
            <ul class="layui-tab-title">
                <li class="layui-this">时间线</li>
                <li>账号</li>
                <li>修改密码</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;"></fieldset>
                    <ul class="layui-timeline">
                        <li class="layui-timeline-item">
                            <i class="layui-icon layui-timeline-axis"></i>
                            <div class="layui-timeline-content layui-text">
                                <h3 class="layui-timeline-title" style="font-size: 13px;color: #909399;">
                                    {{log.createTime}}</h3>
                                <div class="layui-panel">
                                    <p style="margin: 25px;font-weight: 800;font-size: 15px;">上次活动时间</p>
                                    <p style="margin: 25px;">{{admin.realName}}{{log.content}}</p>
                                </div>
                            </div>
                        </li>

                        <li class="layui-timeline-item">
                            <i class="layui-icon layui-timeline-axis"></i>
                            <div class="layui-timeline-content layui-text">
                                <h3 class="layui-timeline-title" style="font-size: 13px;color: #909399;">
                                    {{admin.createTime}}</h3>
                                <div class="layui-panel">
                                    <p style="margin: 25px;font-weight: 800;font-size: 15px;">加入时间</p>
                                    <p style="margin: 25px;">{{admin.realName}}加入了阿里迪里管理系统</p>
                                </div>
                            </div>
                        </li>

                    </ul>
                </div>
                <div class="layui-tab-item">
                    <div style="margin-top: 10px;font-weight: 600;">真实姓名</div>
                    <div class="layui-block" style="margin-top: 10px;">
                        <input type="text" id="realName" lay-verify="title" autocomplete="off"
                            v-bind:value="admin.realName" class="layui-input">
                    </div>

                    <div style="margin-top: 20px;font-weight: 600;">手机号</div>
                    <div class="layui-block" style="margin-top: 10px;">
                        <input type="text" id="phone" lay-verify="title" autocomplete="off" v-bind:value="admin.phone"
                            class="layui-input">
                    </div>


                    <div style="margin-top: 20px;">
                        <button class="layui-btn layui-btn-normal" style="border-radius: 5px;" type="button"
                            @click="update">更新</button>
                    </div>
                </div>

                <div class="layui-tab-item">
                    <div class="layui-form-item" style="margin-bottom: 30px;">
                        <label class="layui-form-label" style="font-weight: 600;"><span
                                style="color: red;">*</span>旧密码：</label>
                        <div class="layui-input-block">
                            <input type="password" id="oldPass" lay-verify="title" autocomplete="off"
                                class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item" style="margin-bottom: 30px;">
                        <label class="layui-form-label" style="font-weight: 600;"><span
                                style="color: red;">*</span>新密码：</label>
                        <div class="layui-input-block">
                            <input type="password" id="newPass" lay-verify="title" autocomplete="off"
                                class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item" style="margin-bottom: 30px;">
                        <label class="layui-form-label" style="font-weight: 600;"><span
                                style="color: red;">*</span>确认密码：</label>
                        <div class="layui-input-block">
                            <input type="password" id="newPass2" lay-verify="title" autocomplete="off"
                                class="layui-input">
                        </div>
                    </div>

                    <div style="margin-left: 110px;">
                        <button class="layui-btn layui-btn-normal" style="border-radius: 5px;" type="button"
                            @click="updatePass">更新</button>
                    </div>
                </div>

            </div>
        </div>

    </div>

    <script src="../layui/layui.js"></script>
    <script src="../js/jquery-1.12.4.min.js"></script>
    <script src="../js/Vue.js"></script>
    <script src="js/over/personal.js"></script>
</body>

</html>